Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated golangci-lint config #2718

Closed
wants to merge 2 commits into from

Conversation

mogren
Copy link

@mogren mogren commented Apr 2, 2024

Executing golangci-lint run using old config generates the following warnings:

WARN [config_reader] The configuration option run.skip-dirs-use-default is deprecated, please use issues.exclude-dirs-use-default.
WARN [config_reader] The configuration option linters.govet.check-shadowing is deprecated. Please enable shadow instead, if you are not using enable-all.

Description

Before change:
Screenshot 2024-04-01 at 20 59 13

After change:
Screenshot 2024-04-01 at 21 26 42

Reference issue

No issue filed for this warning.

mogren added 2 commits April 1, 2024 21:32
Executing `golangci-lint run` using old config generates the following warnings:

WARN [config_reader] The configuration option `run.skip-dirs-use-default` is deprecated, please use `issues.exclude-dirs-use-default`.
WARN [config_reader] The configuration option `linters.govet.check-shadowing` is deprecated. Please enable `shadow` instead, if you are not using `enable-all`.
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.31%. Comparing base (92df4bf) to head (1b0b92e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2718      +/-   ##
==========================================
- Coverage   76.41%   76.31%   -0.11%     
==========================================
  Files          87       87              
  Lines        9967     9967              
==========================================
- Hits         7616     7606      -10     
- Misses       1879     1886       +7     
- Partials      472      475       +3     
Flag Coverage Δ
go 77.82% <ø> (-0.12%) ⬇️
wasm 63.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sean-Der
Copy link
Member

Sean-Der commented Apr 2, 2024

Thank you so much @mogren excited to get your help. Can you make this against https://github.com/pion/.goassets/blob/master/ci/.golangci.yml

when you push a tag to that repo it syncs across everything then.

@mogren
Copy link
Author

mogren commented Apr 2, 2024

Thanks! Just testing so that I have things set up right 😄

@mogren mogren closed this Apr 2, 2024
@mogren
Copy link
Author

mogren commented Apr 2, 2024

Moved to pion/.goassets#208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants